package com.example.hello.dto;

import java.time.LocalDate;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class EmployeeAddDTO {
    @NotBlank(message = "用户名不能为空")
    private String username;
    
    @NotNull(message = "性别不能为空")
    private Integer gender;
    
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phoneNumber;
    
    @NotNull(message = "部门不能为空")
    private Integer departmentId;
    
    @NotNull(message = "职位不能为空")
    private Integer positionId;
    
    private String avatar;
    
    @NotNull(message = "入职日期不能为空")
    private LocalDate joinDate;
} 